package com.atguigu.service.Impl;

import com.atguigu.dao.BaseDao;
import com.atguigu.dao.HouseUserDao;
import com.atguigu.entity.HouseUser;
import com.atguigu.service.HouseService;
import com.atguigu.service.HouseUserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @title：
 * @author：Yu
 * @create：2023-02-15 11:36
 * @description：
 */
@DubboService
public class HouseUserServiceImpl extends BaseServiceImpl<HouseUser> implements HouseUserService {
    @Autowired
    private HouseUserDao houseUserDao;

    @Override
    public BaseDao<HouseUser> getBaseDao() {
        return houseUserDao;
    }

    @Override
    public List<HouseUser> findUserByHouseId(long id) {
        return houseUserDao.findUserByHouseId(id);
    }
}
